package cn.yuanyu.tkmapper.utils;

public class StackTraceUtils {
    public static String getStackTrace() {
        StringBuilder sb = new StringBuilder();
        StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
        for (int i=2;i<stackTraceElements.length; i++) {
            sb.append(stackTraceElements[i].toString()).append("\n");
        }
        return sb.toString();
    }
}